using FluentNHibernate.Mapping;
using ThunderJob.Domain;

namespace ThunderJob.Persistence.Mappings.Fluent
{
    public sealed class AnuncioMap : ClassMap<Anuncio>
    {
        public AnuncioMap()
        {
            Id(x => x.Id)
                .GeneratedBy.HiLo("100");

            Map(x => x.Titulo);
            Map(x => x.Descripcion);
            References(x => x.Empresa)
                .Column("EmpresaId");
        }
    }
}